package com.ndd.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cmall-ybu
 * @Titile: UserUpdatePwdDTO
 * @Author: Lucky
 * @Description: 修改密码的DTO
 */
@Data
public class UserUpdatePwdDTO {
    @NotBlank(message = "原来密码不能为空")
    private String oldPwd;
    @NotBlank(message = "新密码不能为空")
    @Length(max = 12,min = 6,message = "密码长度应该为6-12位")
    private String newPwd;
    @NotBlank(message = "确认密码不能为空")
    private String reNewPwd;
}
